package com.buba.springcloud.myrule;

import com.netflix.loadbalancer.IRule;
import com.netflix.loadbalancer.RoundRobinRule;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author：xy
 */
@Configuration
public class MyselfRule {

    @Bean
    public IRule myRule(){
        return new RoundRobinRule();
    }
}
